﻿$(function() {
	$('.catagory_item').click(function() {
		$('.catagory_item').removeClass("changeColor");
		$('.catagory_item').removeClass("changeColor");
		$(this).addClass("changeColor");
	});

	var name = "#floatMenu";
	var menuYloc = null;
	menuYloc = parseInt($(name).css("top").substring(0,
			$(name).css("top").indexOf("px")))
	$(window).scroll(function() {
		var offset = menuYloc + $(document).scrollTop() + "px";
		$(name).animate({
			top : offset
		}, {
			duration : 500,
			queue : false
		});
	});
	
	$(".topnav").accordion({
		accordion : 'true',
		speed : 500,
		closedSign : '[+]',
		openedSign : '[-]'
	});
});